import Vue from 'vue'
import Vuex from 'vuex'
import createVuexAlong from 'vuex-along'
import getters from '@/store/getters.js'
import user from '@/store/modules/user.js'
import common from '@/store/modules/common.js'
import student from '@/store/modules/student.js'
Vue.use(Vuex)

// 用于动态数据保存
const store = new Vuex.Store({
	modules: {
		user,
		common,
		student
	},
	getters,
	plugins: [createVuexAlong()]
})

export default store
